package com.tmt.im.service.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * 拉入或拉出黑名单请求
 *
 * @Description TODO
 * @Author wuyi
 * @Date 2024/9/14 22:23
 * @Version 1.0
 **/

@Getter
@Setter
@Tag(name = "群黑名单管理请求对象", description = "群黑名单管理请求对象")
public class SessionBlackBillRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = -465775251223268250L;

    @Schema(description = "群组ID")
    @NotNull(message = "群组ID不能为null")
    private Long tid;

    @Schema(description = "要操作的用户ID")
    @NotNull(message = "用户ID不能为null")
    @Min(value = 1, message = "用户ID不能小于1")
    private Long userId;

    @Schema(description = "是否是拉入操作？ true——拉入，false——踢出\n" +
            "进入群黑名单的用户无法被拉入该群")
    @NotNull(message = "是否是拉入操作参数不能为null")
    private Boolean pullIn;

}
